package com.autoapitest.common.core.domain.entity;

import com.autoapitest.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;


@ApiModel(value = "ProjectBaseEntity", description = "项目实体")
public class ProjectBaseEntity extends BaseEntity {
    /**
     * 项目主键
     */
    @ApiModelProperty("项目主键")
    private String projectId;

    /**
     * 项目名称
     */
    @ApiModelProperty("项目名称")
    @NotEmpty(message = "项目名称不能为空")
    private String projectName;


    /**
     * 项目状态 0 开始 1暂停 2关闭
     */
    @ApiModelProperty("项目状态 0开始 1暂停 2关闭")
    @NotEmpty(message = "项目状态不能为空")
    private String projectState;

    /**
     * 项目简介 500字符
     */
    @ApiModelProperty("项目描述")
    @NotEmpty(message = "项目描述不能为空")
//    @Max(value = 500,message = "项目描述最大500字符")
    private String projectDescribe;


    private String createByName;


    public String getCreateByName() {
        return createByName;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectState() {
        return projectState;
    }

    public void setProjectState(String projectState) {
        this.projectState = projectState;
    }

    public String getProjectDescribe() {
        return projectDescribe;
    }

    public void setProjectDescribe(String projectDescribe) {
        this.projectDescribe = projectDescribe;
    }

    @Override
    public String toString() {
        return "ProjectBaseEntity{" +
                "projectId='" + projectId + '\'' +
                ", projectName='" + projectName + '\'' +
                ", projectState='" + projectState + '\'' +
                ", projectDescribe='" + projectDescribe + '\'' +
                ", createByName='" + createByName + '\'' +
                '}';
    }
}
